package org.example.coupon.dao;


import org.apache.ibatis.annotations.Param;
import org.example.coupon.entity.SeckillPromotionEntity;

import java.time.LocalDate;
import java.util.List;

/**
 * @author xiaojie_cc
 * @version 1.0
 */
public interface SeckillPromotionDao{

    // 添加秒杀场次
    int saveSeckillPromotion(SeckillPromotionEntity seckillPromotion);

    // 查看秒杀场次列表
    List<SeckillPromotionEntity> getSeckillPromotionList(@Param("title") String title, @Param("status") Integer status, @Param("nowDate") LocalDate nowDate);

    SeckillPromotionEntity getSeckillPromotionInfo(@Param("id") Long id);


    int updateSeckillPromotion(SeckillPromotionEntity seckillPromotion);

    List<SeckillPromotionEntity> getCanPromotionSession(@Param("localDate") LocalDate localDate);
}
